package com.back.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

/**
 * 题目表
 * @TableName questions
 */
@TableName(value ="questions")
@Data
public class Questions {
    /**
     * 题目ID
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 题目类型 0 单选 1多选 2填空
     */
    private Integer type;

    /**
     * 问题内容
     */
    private String question;

    /**
     * 题目分值
     */
    private Integer score;

    /**
     * 难度
     */
    private Object difficulty;

    /**
     * 分类
     */
    private String category;

    /**
     * 正确答案(单选题)
     */
    private String correctAnswer;

    /**
     * 正确答案(多选题) json
     */
    private String correctAnswers;

    /**
     * 
     */
    private Date createdTime;

    /**
     * 
     */
    private Date updatedTime;

    /**
     * 题目所属 考试 试卷
     */
    private Integer belong;
}